﻿using TestClientsCommon;
using smp.RabbitMq;

namespace Subscriber1
{
    class Program
    {
        static void Main(string[] args)
        {
            var factory = new RabbitMqFactory();
            var handlers = new SubscriberHandlers()
                .Add(new Message1Subscriber1());
            using(var subscriber = factory.CreateSubscriber(handlers))
            {
                subscriber.HostSubscriberServer();
            }
        }
    }
}
